package cn.wolfcode.wms.mapper;

import cn.wolfcode.wms.domain.ProductStock;
import cn.wolfcode.wms.domain.Role;
import cn.wolfcode.wms.query.QueryObject;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface ProductStockMapper {

    int queryForCount(QueryObject qo);

	List<ProductStock> queryForList(QueryObject qo);

	ProductStock selectByProductIdAndDepotId(@Param("pId")Long pId, @Param("depotId")Long depotId);

	void updateByPrimaryKey(ProductStock stock);

	void insert(ProductStock newStock);
}